home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / msdos / lynx / source / doslynx / src / textatt8.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-25  |  1.2 KB  |  34 lines

  1. //    Copyright (c) 1994, University of Kansas, All Rights Reserved
  2. //
  3. //    Class:        TextAttribute
  4. //    Include File:    textattr.h
  5. //    Purpose:    Implement a way of giving a WWW style of attribute to
  6. //            a segment of a stream of data.
  7. //    Remarks/Portability/Dependencies/Restrictions:
  8. //        The difference between the start and end of an attribute is
  9. //        called extent.  Extent can be considered a correlation to
  10. //        calling strlen on a string.
  11. //        An extent of 0 means no duration, 1 means 1 byte, etc...
  12. //        A negative extent is equivalent to 0 extent.
  13. //        Once an attribute type is set by the constructor, it can
  14. //        never be changed.
  15. //    Revision History:
  16. //        02-01-94    created
  17. //        02-09-94    Split all members into seperate files.
  18. #include"textattr.h"
  19.  
  20. void TextAttribute::End(const signed long int sli_OffsetPlusExtent)
  21. {
  22. //    Purpose:    Set the ending of an attribute in a stream.
  23. //    Arguments:    sli_OffsetPlusExtent    The ending stream offset.
  24. //    Return Value:    void
  25. //    Remarks/Portability/Dependencies/Restrictions:
  26. //        Provides a mechanism for change.
  27. //        This in no way will change the beginning offset into the
  28. //        stream unless specifically adjusted also.
  29. //    Revision History:
  30. //        02-01-94    created.
  31.  
  32.     sli_StreamExtent = sli_OffsetPlusExtent;
  33. }
  34.